﻿using B.S.EventHandle.ErrorCode;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace B.S.SmartStorPro.Domain
{
    /// <summary>
    /// 消息中心表
    /// </summary>
    public class MessageCenter
    {
        /// <summary>
        /// 消息中心表--主键
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int MessageID { get; set; }
        /// <summary>
        /// 用户ID
        /// </summary>
        public int Userld {  get; set; }
        /// <summary>
        /// 消息标题
        /// </summary>
        /// 
        [MaxLength(50)]
        public string Title { get; set; }
        /// <summary>
        /// 消息内容
        /// </summary>
        /// 
        [MaxLength(255)]
        public string Content { get; set; }
        /// <summary>
        /// 接收时间
        /// </summary>
        public DateTime ReceivedTime { get; set; }
        /// <summary>
        /// 消息类型
        /// </summary>
        /// 
        [MaxLength(50)]
        public string MessageType { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public MessageStatus Status { get; set; }
        /// <summary>
        /// 是否删除(1-删除 0正常)
        /// </summary>
        public bool IsDelete { get; set; }

    }
}
